<?php

namespace app\models\yuyue;

use Yii;

/**
 * This is the model class for table "yuyue".
 *
 * @property integer $id
 * @property integer $member_id
 * @property string $member_nickname
 * @property integer $zuoye_cat_id
 * @property string $name
 * @property string $price
 * @property string $time
 * @property string $phone
 * @property string $remark
 * @property string $creat_time
 */
class Yuyue extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'yuyue';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['member_id'], 'required'],
            [['member_id', 'zuoye_cat_id'], 'integer'],
            [['price'], 'number'],
            [['time', 'creat_time'], 'safe'],
            [['member_nickname', 'remark'], 'string', 'max' => 255],
            [['name', 'phone'], 'string', 'max' => 64],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'member_id' => 'Member ID',
            'member_nickname' => 'Member Nickname',
            'zuoye_cat_id' => 'Zuoye Cat ID',
            'name' => 'Name',
            'price' => 'Price',
            'time' => 'Time',
            'phone' => 'Phone',
            'remark' => 'Remark',
            'creat_time' => 'Creat Time',
        ];
    }
}
